<!doctype html>
<html>

	<head>
		<meta charset="UTF-8">
		<title></title>
		<meta name="viewport" content="width=device-width,initial-scale=1,minimum-scale=1,maximum-scale=1,user-scalable=no" />
		<link href="../css/mui.min.css" rel="stylesheet" />
	</head>

	<body>
		<script src="../js/mui.min.js"></script>
		<header class="mui-bar mui-bar-nav">
		    <a class="mui-action-back mui-icon mui-icon-left-nav mui-pull-left" onclick="location='homepage.html'"></a>
		    <h1 class="mui-title"></h1>
		</header>
		<div class="mui-content">
		    	<article>
		    	</article>
		</div>
		<nav class="mui-bar mui-bar-tab">
		    <a class="mui-tab-item">
		        <span class="mui-icon mui-icon-compose" onclick="location='editpage.html'"></span>
		    </a>
		    <a class="mui-tab-item">
		        <span class="mui-icon mui-icon-star"></span>
		    </a>
		    <a class="mui-tab-item">
		        <span class="mui-icon mui-icon-redo"></span>
		        
		    </a>
		    <a class="mui-tab-item">
		        <span class="mui-icon mui-icon-trash" onclick="de()"></span>
		    </a>		    
		</nav>
	</body>
	<script>
		window.onload=function(){
		var header = document.getElementsByClassName('mui-title');
		header[0].innerHTML=window.localStorage.getItem("thishd");
		var at=document.getElementsByTagName("article");
		at[0].innerHTML=window.localStorage.getItem("thisat");
		}
		
		function de(){
			var hd = window.localStorage.getItem("thisnoh");
			var at = window.localStorage.getItem("thisnoa");
			hd.toString();
			at.toString();
			
			window.localStorage.removeItem(hd);
			window.localStorage.removeItem(at);
			window.localStorage.removeItem("thisnoh");
			window.localStorage.removeItem("thisnoa");
			window.localStorage.removeItem("thishd");
			window.localStorage.removeItem("thisat");
			window.localStorage.noa--;
			window.location.href="homepage.html";
		}
	</script>

</html>